<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./lib/vue.min.js"></script>
</head>
<body>
    <div id="app">
        <input type="text" @keyup.a = "handle">
    </div>
    
    <script>
        //自定义全局按键修饰符(选中文本框后按a即可弹窗11)
        Vue.config.keyCodes.a = 65

        var vm = new Vue({
            el:"#app",
            data:{},
            methods: {
                handle() {
                    alert(11)
                }
            }
        })
    </script>
</body>
</html>